package k8s

import (
	"github.com/gin-gonic/gin"
	"kubeimooc/api"
)

/*
*
初始化svc的路由
*/
func initSvcRouter(group *gin.RouterGroup) {
	svcApi := api.ApiGroupApp.K8sApiGroup.SvcApi
	group.POST("/svc", svcApi.CreateOrUpdateSvc)
	group.GET("/svc/:namespace", svcApi.GetSvcDetailOrList)
	group.DELETE("/svc/:namespace/:name", svcApi.DeleteSvc)
}
